The Smart ComboBox Component > FSmartComboBox.getHistoryLength()

 

FSmartComboBox.getHistoryLength()

Availability

Macromedia Flash Player 6.

Usage

myCombo.getHistoryLength();

Parameters

None.

Returns

This method returns the number of elements that can be stored in the history. This number can be set through the setHistoryLength method.

Description

The method getHistoryLength gets the maximum number of items that can be stored in the history.

Example

The following example shows how to use the getHistoryLength method to get the number of elements that can be stored in history. The number is displayed in the output window.

var history_len = myCombo.getHistoryLength();
trace(history_len);

See also

FSmartComboBox.setHistoryLength